package com.sc.nft.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sc.nft.entity.BoxItem;
import com.sc.nft.entity.vo.BoxCollectionEquityVO;
import com.sc.nft.entity.vo.BoxDigitalCollectionVO;
import com.sc.nft.entity.vo.BoxItemVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 盲盒子项表(sc_box_item)数据Mapper
 *
 * @author zxy
 * @since 2022-06-03 01:43:54
 * @description 由 Mybatisplus Code Generator 创建
 */
@Mapper
public interface BoxItemMapper extends BaseMapper<BoxItem> {

    /**
     * 根据盲盒Id查询藏品
     * @param boxId
     * @return
     */
    List<BoxDigitalCollectionVO>  getDigitalCollections(@Param("boxId")Long boxId);

    List<BoxItemVO> getBoxItem(@Param("boxId") Long boxId);

    /**
     * 根据盲盒id获取盲盒项
     * @param boxId
     * @return
     */
    List<BoxCollectionEquityVO> getBoxItemByBoxId(@Param("boxId") Long boxId);
}
